<?php
	require_once('Commun.php');

	$results = PdoUtil::getInstance()->executeSelect("SELECT id, titre FROM scenario", array());
		
	$reponse = array();
	
	for ($i = 0; $i < count($results); $i++) {
			array_push($reponse, array("id" => $results[$i]["id"], "titre" => utf8_encode($results[$i]["titre"])));
	}
	
	echo json_encode($reponse);
?>